<?php namespace Summer\Location\Updates;

use Schema;
use October\Rain\Database\Updates\Migration;

class BuilderTableCreateSummerLocationArea extends Migration
{
    public function up()
    {
        Schema::create('summer_location_area', function($table)
        {
            $table->engine = 'InnoDB';
            $table->increments('id')->unsigned();
            $table->string('code');
            $table->string('name');
            $table->integer('city_id')->nullable();
            $table->string('province')->nullable();
            $table->string('city')->nullable();
            $table->string('area')->nullable();
            $table->integer('status')->nullable()->default(1);
        });
    }
    
    public function down()
    {
        Schema::dropIfExists('summer_location_area');
    }
}
